package com.yixuan.mt.common.entity;

import com.yixuan.mt.common.constant.IdentityConstant;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class User {
    private Integer id;
    @NotEmpty(message = "用户名不能为空！")
    @Size(max = IdentityConstant.USER_NAME_MAX_LENGTH, message = "用户名长度不能超过20！")
    private String username;
    @NotEmpty(message = "密码不能为空！")
    private String password;
    private String policyList;
}
